/**
 * Created by malingling on 15-12-15.
 */
var app=angular.module('orderMasterApp',['ngRoute'])

    app.config(function($routeProvider){
        $routeProvider
            .when('/',{
                templateUrl:'../html/order.html',
                controller:'OrderCtrl'
            })
            .when('/select_menu',{
                templateUrl:'../html/select_menu.html',
                controller:'SelectMenuCtrl'
            })
            .when('/select_people',{
                templateUrl:'../html/select_people.html',
                controller:'SelectPeopleCtrl'
            })
            .when('/select_restaurant',{
                templateUrl:'../html/select_restaurant.html',
                controller:'SelectRestaurantCtrl'
            })
            .when('/select_combo',{
                templateUrl:'../html/select_combo.html',
                controller:'SelectComboCtrl'
            })
            .when('/select_people',{
                templateUrl:'../html/select_people.html',
                controller:'SelectPeopleCtrl'
            })
            .when('/menu',{
                templateUrl:'../html/menu.html',
                controller:'MenuCtrl'
            })
    })